/*
 *  @ProductName@
 *  Copyright (C) @CopyrightYear@
 *    National Institute of Advanced Industrial Science and Technology (AIST)
 *    Registration Number: @AISTRegistrationNumber@
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package jp.go.aist.six.vuln.model.scap.vulnerability;

import jp.go.aist.six.util.orm.AbstractPersistable;
import jp.go.aist.six.vuln.model.scap.core.Reference;




/**
 * Extends the base Reference class by adding the ability
 * to specify which kind (within the vulnerability model)
 * of reference it is.
 * See "VulnerabilityReferenceCategory" enumeration.
 *
 * @author	Akihito Nakamura, AIST
 * @version $Id: VulnerabilityReference.java 233 2010-06-03 14:29:43Z nakamura5akihito $
 */
public class VulnerabilityReference
    extends AbstractPersistable
{

    private String  _source;
    //{0..1}

    private Reference  _reference;
    //{1..1}

//    private Notes  _notes;
//    private String  _lang = "en";

    private VulnerabilityReferenceCategory  _referenceType;
    //{required}

//    private boolean  _deprecated;
//    //{optional}



    /**
     * Constructor.
     */
    public VulnerabilityReference()
    {
    }



    /**
     */
    public String getSource()
    {
        return _source;
    }


    /**
     */
    public void setSource(
                    final String source
                    )
    {
        _source = source;
    }



    /**
     */
    public Reference getReference()
    {
        return _reference;
    }


    /**
     */
    public void setReference(
                    final Reference reference
                    )
    {
        _reference = reference;
    }


//    /**
//     */
//    public Notes getNotes()
//    {
//        return _notes;
//    }
//
//
//    /**
//     */
//    public void setNotes(
//                    final Notes notes
//                    )
//    {
//        _notes = notes;
//    }


    /**
     */
    public VulnerabilityReferenceCategory getReferenceType()
    {
        return _referenceType;
    }


    /**
     */
    public void setReferenceType(
                    final VulnerabilityReferenceCategory referenceType
                    )
    {
        _referenceType = referenceType;
    }



//    /**
//     */
//    public boolean isDeprecated()
//    {
//        return _deprecated;
//    }
//
//
//    /**
//     */
//    public void setDeprecated(
//                    final boolean deprecated
//                    )
//    {
//        _deprecated = deprecated;
//    }

}
// VulnerabilityReference
